﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kokomo.Mirror.Ia32;

namespace Kokomo.PeInspector.Native
{
	class DecompilationException : Exception
	{
		public Ia32Instruction Instruction { get; private set; }

		public DecompilationException(
			Ia32Instruction instruction,
			Exception innerException
			)
			: base(null, innerException)
		{
			if (instruction == null) throw new ArgumentNullException("instruction");

			this.Instruction = instruction;
		}
	}
}
